// 对象解构
const obj = {name: 'zce', age: 18}

// const {name} = obj
// console.log(name) // -> 'zce'

// const name = 'tom'
// const {name} = obj // -> 变量名冲突

// 解决冲突 别名
const name = 'tom'
const {name: objName} = obj
console.log(name) // -> 'tom'
console.log(objName) // -> 'zce'

